disable locale specific tests
authorLaszlo Boszormenyi (GCS) <gcs@debian.org>
Tue, 2 Dec 2025 18:03:25 +0000 (19:03 +0100)
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>
Tue, 2 Dec 2025 18:03:25 +0000 (19:03 +0100)
Forwarded: no
Last-Update: 2022-03-31

On buildd network locales might not be available.

Gbp-Pq: Name disable_locale_tests.patch

lib/cpp/test/ToStringTest.cpp

index cb792df67b7dc47b1cf1de51f9ed3e5672667da6..74e382c83cc311f3241e9a81e5292d9de06094ce 100644 (file)
@@ -44,6 +44,7 @@ BOOST_AUTO_TEST_CASE(base_types_to_string) {
 // NOTE: Currently (as of 2021.08.12) the locale-based tests do not work on
 // Windows in the AppVeyor Thrift CI build correctly. Therefore disabled on
 // Windows:
+/*
 #ifndef _WIN32
 BOOST_AUTO_TEST_CASE(locale_en_US_int_to_string) {
 #ifdef _WIN32
@@ -53,7 +54,9 @@ BOOST_AUTO_TEST_CASE(locale_en_US_int_to_string) {
 #endif
   BOOST_CHECK_EQUAL(to_string(1000000), "1000000");
 }
+*/
 
+/*
 BOOST_AUTO_TEST_CASE(locale_de_DE_floating_point_to_string) {
 #ifdef _WIN32
   std::locale::global(std::locale("de-DE.UTF-8"));
@@ -65,6 +68,7 @@ BOOST_AUTO_TEST_CASE(locale_de_DE_floating_point_to_string) {
   BOOST_CHECK_EQUAL(to_string(1.5L), "1.5");
 }
 #endif
+*/
 
 BOOST_AUTO_TEST_CASE(empty_vector_to_string) {
   std::vector<int> l;